#!/usr/bin/python
#-*-coding: utf-8 -*-

__all__ = []

from _pylot.data import regexpr

def script_name (file_path):
  return regexpr.co_script_shell_name.match(file_path)

def script_content (file_path):
  f = open(file_path, 'r')
  if regexpr.co_script_shell_content_l1.match(f.readline().strip()) \
    and regexpr.co_script_shell_content_l2.match(f.readline().strip()) :
    f.close()
    return True
  else :
    f.close()
    return False

